<?php

session_start();
include_once("../../conf/config.php");
include_once("../../lib/core/BaseView.class.php");

// Forward to action
$module = $_REQUEST["m"];
$action = $_REQUEST["a"];
if (($module === null || $action === null)) {
	BaseView::redirect("admin", "login");
}

$actionFile = ADMIN_MODULE_ACTION_DIR . "/" . $action . ".act.php";
$templateFile = ADMIN_MODULE_TEMPLATES_DIR . "/" . $action . ".tpl.php";
if (is_file($actionFile)) {
	require($actionFile);
}
if (is_file($templateFile)) {
	require($templateFile);
}
?>
